package com.taxicall.entities;

import java.io.Serializable;

public class NetworkMessage implements Serializable {

	private static final long serialVersionUID = -269035623368509645L;

	public enum MessageType{
		GetStartLocations, SetStartLocations,
		GetAllTaxis, SetAllTaxis,
		UpdateTaxi,	UpdateTaxiOk,
		RequestRide, RideReply
	}
	
	private MessageType type;
	private Serializable dataObject;

	public NetworkMessage(MessageType type, Serializable dataObject) {
		this.type = type;
		this.dataObject = dataObject;
	}
	
	public Serializable getDataObject() {
		return dataObject;
	}

	public MessageType getType() {
		return type;
	}
}
